package com.charactereducation.admin.service.impl;

import com.charactereducation.admin.service.ActivityServiceClient;
import com.charactereducation.module.vo.Activity;
import com.charactereducation.tools.myRunTime.MyRunTimeExcption;
import com.charactereducation.webcore.service.ServiceBase;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * Created by Baggio on 2018-10-25.
 */

@Component
public class ActivityServiceClientBack extends ServiceBase implements ActivityServiceClient {
    @Override
    public Activity getUserById(@PathVariable("id") Long id) throws MyRunTimeExcption {
        throw new MyRunTimeExcption("网络连接失败！");
    }

    @Override
    public PageInfo pageInfo(@RequestBody Map<String, String> map) throws MyRunTimeExcption {
        throw new MyRunTimeExcption("");
    }

    @Override
    public void modify(@RequestBody Activity activity) throws MyRunTimeExcption {
        throw new MyRunTimeExcption("");
    }
}
